import os

# 项目运行目录
ROOT_PATH = os.getcwd()

# 线程配置
THREAD_NUM = 5
RETRY_TIMES = 2

# search相关参数配置
SEARCH_THREAD_NUM = 1  # 搜索线程数
PAGE_COUNT = 2  # 要搜索的页数，比如要搜索前2页，就是2

# 数据库
DB_CONFIG = {
    "host": "127.0.0.1",
    "user": "root",
    "password": "123456",
    "database": "spider",
    "charset": "utf8mb4"
}
